﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DirNode : baseAnction
{
    public override void _onClick(string btnTag, GameObject obj)
    {
        base._onClick(btnTag, obj);
        switch (btnTag)
        {
            case "UpButton":
                toolOne.changeRotation(1);
                break;
            case "DownButton":
                toolOne.changeRotation(3);
                break;
            case "LeftButton":
                toolOne.changeRotation(4);
                break;
            case "RightButton":
                toolOne.changeRotation(2);
                break;
            case "xButton":
                toolOne.changScale(-(int)toolOne.transform.localScale.x, (int)toolOne.transform.localScale.y);
                break;
            case "yButton":
                toolOne.changScale((int)toolOne.transform.localScale.x, -(int)toolOne.transform.localScale.y);
                break;
            default:
                Debug.Log("点击了" + btnTag + "未处理");
                break;
        }
    }
}